import request from '../utils/request';

// 获取员工列表
export function getLisUser(data) {
    return request({

        url: '/User/getLisUser?pageNum=' + data.pageIndex + '&pageSize=' + data.pageSize,
        method: 'post',
        data: data
    });
}

// 添加员工
export function addUser(data) {
    return request({
        url: '/User/addUpdateUser',
        method: 'post',
        data: data
    });
}

// 编辑员工信息
export function editUser(data) {
    return request({
        url: '/User/addUpdateUser',
        method: 'post',
        data: data

    });
}

// 员工信息详情
export function getUserInfo(data) {
    return request({
        url: '/User/getUserInfo',
        method: 'post',
        data: data

    });


}
//删除员工
export function delUser(data) {
    return request({
        url: '/User/delUser',
        method: 'post',
        data: data
    });


}
// 员工信息删除
export function delInfo(data) {
    return request({
        url: '/User/delUser',
        method: 'post',
        data: data

    });
}
// 获取所有用户id和名称
export function getAllUser() {
    return request({
        url: '/User/getAllUser',
        method: 'post'
    });
}
